#ifndef BEDROOM1_H
#define BEDROOM1_H

#include <QWidget>
#include <QPainter>
#include <QTimer>

class bedroom1 : public QWidget
{
    Q_OBJECT

public:
    explicit bedroom1(QWidget *parent = nullptr);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    int temperatureValue; // 温度值
    int humidityValue;    // 湿度值
    int lightValue;       // 光照值
    QTimer *timer;        // 定时器更新数据

private slots:
    void updateData(); // 更新数据
};

#endif // BEDROOM1_H
